<%let message=data.taskInfo; let value=data.value;%>
<div class="taskOpenBack">
    <div class="taskOpen">
        <div class="infoHead">
            <div class="line"></div>
            <span class="infoTitle">任务详情</span>
        </div>
        <div class="infoBody">
            <div class="row routeRow">
                <div class="left">
                    <p>任务标题</p>
                    <input class="input" type="button" value="<%- message.taskTitle%>">
                </div>
                <div class="right">
                    <p>任务流水号</p>
                    <input class="input" type="button" value="<%- message.taskSn%>">
                </div>
            </div>
            <div class="row">
                <div class="left">
                    <p>处理人</p>
                    <input class="input" id="layTime" type="button" value="<%- message.dealUserName!=''?message.dealUserName:'暂无处理人'%>">
                </div>
                <div class="right">
                    <p>任务状态</p>
                    <%let str='';if(message.status==1){
                        str='待办'
                    }else if(message.status==2){
                        if(message.dealStatus==1){
                            str='正常'
                        }else if(message.dealStatus==2){
                            str='待维修'
                        }else if(message.dealStatus==3){
                            str='器材过期'
                        }else if(message.dealStatus==4){
                            str='现场维修'
                        }
                    }else if(message.status==3){
                        str='超时'
                    }%>
                    <input class="input" type="button" value="<%- str%>">
                </div>
            </div>
            <div class="row">
                <div class="left">
                    <p>开始时间</p>
                    <input class="input" type="button" value="<%- message.beginTime%>">
                </div>
                <div class="right">
                    <p>截止时间</p>
                    <input class="input" type="button" value="<%- message.endTime%>">
                </div>
            </div>
            <div class="row">
                <div class="left">
                    <p>创建时间</p>
                    <input class="input" type="button" value="<%- message.createTime%>">
                </div>
                <div class="right">
                    <p>完成时间</p>
                    <input class="input" type="button" value="<%- message.finishTime==''?'未完成':message.finishTime%>">
                </div>
            </div>
            <div class="row" style="height: 1.3rem">
                <textarea name="" id="routeMsg" cols="30" rows="10" placeholder="备注信息" value="<%- message.taskRemark%>"><%- message.taskRemark%></textarea>
            </div>
            <%if(message.status == 2){
                let imgUrl = window.location.host;
                let hd = imgUrl.split('.njdtwise')[0]
                imgUrl = hd == 'www' ? 'http://www.njdtwise.com/images/' : 'http://dev.njdtwise.com/images/';
            %>
                <div class="row imgRow">
                    <%$.each(data.taskFile,function(index,el){
                        let _url=imgUrl+el.filePath;%>
                        <img src='<%- _url%>' alt="">
                    <%})%>
                </div>
            <%}%>
        </div>
		<span style="padding-left: 0.24rem;font-size: 0.12rem;" class="uptime">最近巡检上报照片</span>
		<div style="padding: 0 0.24rem;" class="imgbox">
			
		</div>
        <img src="img/user/6904332C-0AF0-402E-B315-6EE99B1DC08B@3x.png" class="closeInfo" id="closeInfo">
    </div>
</div>
